package com.mgfireworks.mgplatform.mgshop.index;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mgfireworks.mgplatform.mgshop.model.Product;

@Controller
@RequestMapping("/")
public class IndexController {
	@Autowired
	private IndexService indexService;
	
	/**
	 * 首页
	 */
	@RequestMapping("/index")
	public List<Product> index(){
		return indexService.getRecommendProducts();
	}
}
